package org.shj.pattern.visitor;

public class ConcreteVisitorB extends Visitor{

	@Override
	public void visitConcreteElementA(ConcreteElementA elementA) {
		System.out.printf("%s被%s访问", elementA.getClass().getName(), this.getClass().getName());
		System.out.println();
	}

	@Override
	public void visitConcreteElementB(ConcreteElementB elementB) {
		System.out.printf("%s被%s访问", elementB.getClass().getName(), this.getClass().getName());
		System.out.println();
	}

	
	
}
